/* eslint-disable */
import {postUrl,getUrl,deleteUrl,putUrl} from '../../utils/https'

//获取所有
export const getExamList = () =>{
    return getUrl('/exam/exam')
}
// 获取考试类型
export const getExamType = () =>{
    return getUrl('/exam/examType')
}
// 获取课程类型
export const getSubject = () =>{
    return getUrl('/exam/subject')
}
//根据条件返回数据
export const getCondition = (params) =>{
    console.log(params)
    return getUrl('/exam/questions/condition',params)
}
// 获取课程详情
export const getExamDetail = (id) =>{
    return getUrl(`/exam/exam/${id}`)
}
// 获取课程详情
export const postExamAdd = (params) =>{
    // console.log(params)
    return postUrl('/exam/exam',params)
}
